Skip to content

Conversation

@tautschnig
Copy link
Collaborator

This PR refactors the basic block detection functionality from the coverage goal instrumenter into a standalone utility module in the src/analyses/ directory. The new utility provides a generic, reusable interface for basic block detection across different parts of the codebase, similar to how natural_loops_templatet handles loop detection.

Fixes: #1686

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@codecov
Copy link

codecov bot commented Nov 30, 2025

Codecov Report

❌ Patch coverage is 94.28571% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.01%. Comparing base (1505c36) to head (22941f4).

Files with missing lines Patch % Lines
src/goto-instrument/cover_basic_blocks.cpp 85.71% 5 Missing ⚠️
src/analyses/basic_blocks_impl.h 97.29% 2 Missing ⚠️
src/analyses/basic_blocks.h 96.77% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #8781   +/-   ##
========================================
  Coverage    80.00%   80.01%           
========================================
  Files         1700     1702    +2     
  Lines       188254   188317   +63     
  Branches        73       73           
========================================
+ Hits        150615   150679   +64     
+ Misses       37639    37638    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This PR refactors the basic block detection functionality from the
coverage goal instrumenter into a standalone utility module in the
`src/analyses/` directory. The new utility provides a generic, reusable
interface for basic block detection across different parts of the
codebase, similar to how `natural_loops_templatet` handles loop
detection.

Fixes: diffblue#1686
@tautschnig tautschnig force-pushed the fix-1686-basic-block-refactor branch from d00c236 to 22941f4 Compare December 2, 2025 16:19
@tautschnig tautschnig marked this pull request as ready for review December 2, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor basic block detection of coverage goal instrumenter

3 participants